import { LvSortDirection as SortDirection, LvPureSortDirection as PureSort } from '../core/api';

export interface BaseSortConfig {
  key?: string;
  direction?: SortDirection;
}

export interface SortConfig extends BaseSortConfig {
  customSort?: <T>(data: T[] | null, sort: SortConfig) => T[] | null;
  defaultSort?: PureSort;
  disableSortClear?: boolean;
}
